import java.util.Scanner;

public class HomeWork14_02{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        
        String cmd;
        do{
            System.out.print("please enter command: ");
            cmd = scan.next();
        }while(!CheckInput.checkExit(cmd));
    }
}

class CheckInput{
    public static boolean checkExit(String cmd){
        if(cmd.toUpperCase().equals("EXIT")){
            return true;
        }
        return false;
    }
}